<div class="bg-light lter b-b wrapper-sm">
    <h1 class="m-n font-thin h4">外接询价单</h1>
</div>
<div class="wrapper-sm" ng-controller="cspinquiryController">
    <div class="panel panel-default">
        <div class="panel-heading font-bold">查询</div>
        <div class="panel-body">
            <label class="control-label pull-left m-t-xs w-xs">总询价编号</label>
            <div class="col-md-2 form-group">
                <input type="text" class="form-control input-sm" id="table_inquiry_inquiryId" ng-model="queryTerms.cspInquiryCode" placeholder="请输入总询价编号" name="cspInquiryCode">
            </div>
            <label class="control-label pull-left m-t-xs w-xs">子询价编号</label>
            <div class="col-md-2 form-group">
                <input type="text" class="form-control input-sm" id="table_inquiry_inquiryChildId" ng-model="queryTerms.cspInquiryChildCode" placeholder="请输入子询价编号" name="cspInquiryChildCode">
            </div>
            <label class="control-label pull-left m-t-xs w-xs">客户单位</label>
            <div class="col-md-2 form-group">
                <input type="text" class="form-control input-sm" id="table_inquiry_clientName" ng-model="queryTerms.clientName" placeholder="请输入客户单位" name="clientName">
            </div>
            <label class="control-label pull-left m-t-xs w-xs">询价状态</label>
            <div class="col-md-2 form-group">
                <select class="form-control input-sm" name="states" id="table_inquiry_state" ng-model="queryTerms.states" ng-options="x.value as x.text for x in inquiryStatusDropDown">
                    <option value="">全部</option>
                </select>
            </div>
            <div class="line line-xs pull-in"></div>
            <label class="control-label pull-left m-t-xs w-xs">询价起始时间</label>
            <div class="col-md-2 col-xs-12 form-group">
                <div class="input-group input-group-sm date">
                    <input id="dataTime" name="beginTime" datetimepicker plugintype="datetime" ng-model="queryTerms.beginTime" placeholder="起始时间" class="form-control" type="text" />
                    <span id="opendataTime" class="input-group-addon curpoint">
                        <span class="glyphicon glyphicon-calendar"></span>
                    </span>
                </div>
            </div>
            <label class="control-label pull-left m-t-xs w-xs">询价结束时间</label>
            <div class="col-md-2 col-xs-12 form-group">
                <div class="input-group input-group-sm date">
                    <input id="dataTimeEnd" name="endTime" datetimepicker plugintype="datetime" ng-model="queryTerms.endTime" placeholder="结束时间" class="form-control" type="text" />
                    <span id="opendataTimeEnd" class="input-group-addon curpoint">
                        <span class="glyphicon glyphicon-calendar"></span>
                    </span>
                </div>
            </div>
            <label class="control-label pull-left m-t-xs w-xs">发货地址</label>
            <div class="col-md-2 form-group">
                <input type="text" id="table_inquiry_startAddress" class="form-control input-sm" ng-model="queryTerms.beginAddress" placeholder="请输入发货地址" name="beginAddress">
            </div>
            <label class="control-label pull-left m-t-xs w-xs">送货地址</label>
            <div class="col-md-2 form-group">
                <input type="text" id="table_inquiry_endAddress" class="form-control input-sm" ng-model="queryTerms.endAddress" placeholder="请输入送货地址" name="endAddress">
            </div>
            <div class="line line-xs pull-in"></div>
            <label class="control-label pull-left w-xs"></label>
            <div class="col-md-2 col-xs-12"></div>
            <label class="control-label pull-left w-xs"></label>
            <div class="col-md-2 col-xs-12"></div>
            <label class="control-label pull-left w-xs"></label>
            <div class="col-md-2 col-xs-12"></div>
            <label class="control-label pull-left w-xs"></label>
            <div class="col-md-2 col-xs-12">
                <button id="table_inquiry_query" ng-click="queryFunc()" class="btn btn-sm btn-default btn-addon" ng-class="{'disabled':querying}" ng-disabled="querying">
                    <i class="fa fa-search" ng-show="!querying"></i>
                    <i class="fa fa-spinner no-bordr" ng-show="querying" ng-class="{'fa-spin':querying}"></i>
                    <span ng-show="!querying">查询</span>
                    <span ng-show="querying">查询中...</span>
                </button>
            </div>
        </div>
    </div>
    <div class="panel panel-default">
        <div class="panel-heading">
            外接询价单列表
        </div>
        <div class="table-responsive">
            <div ui-grid="gridOptions" id="table_inquiry_gridOptions" ui-grid-pagination ui-grid-auto-resize ui-grid-resize-columns style="height:{{heightA}}px; min-height:390px; overflow-y:hidden;">
                <div class="watermark" ng-if="!gridOptions.data.length">暂无数据</div>
            </div>
        </div>
        <div class="panel-body">
            <button id="table_inquiryManagent_excel" ng-click="exportFunc()" class="pull-right-xs btn m-b-xs btn-sm btn-success btn-addon"><i class="fa fa-download"></i>导出报表</button>
        </div>
    </div>

</div>